package com.my.mybatis;

import com.my.mybatis.base.TestBase;
import com.my.mybatis.entity.User;
import com.my.mybatis.service.UserService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author:wangbin.
 * @Description.
 * @Date:Created in 17:59 2017/9/7.
 * @Modified By:
 */
public class ApplicationContext2Main extends TestBase{

    @Autowired
    UserService userService;

    @Test
    public void getUser(){
        User user = userService.getUser(1);
        System.out.println(user);
    }
}
